package com.wfs.myapp.controller.bk;

import com.wfs.myapp.common.ApiResult;
import com.wfs.myapp.common.Constant;
import com.wfs.myapp.service.SchedualedService;
import com.wfs.myapp.utils.JwtUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/bk/scheduled")
@Api(value = "定时任务", tags = "定时任务")
@Slf4j
public class SchedualedController {

    @Autowired
    private SchedualedService schedualedService;

    @GetMapping("/sendMessage")
    @ApiOperation(value = "还书消息提醒")
    public Void sendMessage() {
        return schedualedService.sendMessage();
    }

    @GetMapping("/sendMessageByBirthday")
    @ApiOperation(value = "生日提醒")
    public Void sendMessageByBirthday() {
        return schedualedService.sendMessageByBirthday();
    }



}
